package main

import "github.com/bwmarrin/discordgo"

type handler func(s *discordgo.Session, i *discordgo.InteractionCreate)

var commandHandlers = map[string]handler{
	"ping": func(s *discordgo.Session, i *discordgo.InteractionCreate) {
		// respond this
		s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
			Type: discordgo.InteractionResponseChannelMessageWithSource,
			Data: &discordgo.InteractionResponseData{
				Content: "Bombing number...." + i.ApplicationCommandData().Options[0].StringValue(),
			},
		})
	},
}
